package com.company.策略模式;

public class Fun {
    private Action action;
    public Fun(Action action){
        this.action = action;
    }
    public void fun(){
        System.out.println("第一步");
        System.out.println("第二步");
        System.out.println("第三步");
        action.doFour();
        System.out.println("第五步");
        action.doSix();
        System.out.println("第七步");
    }
}
